//
//  DetailViewController.h
//  FinApp
//
//  Created by Victor Leandro Fernandez Rodrigo on 12/11/11.
//  Copyright (c) 2011 FIB-Fàcultat d'informàtica de Barcelona. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Flat.h"
#import "RestConsumer.h"
#import <MessageUI/MessageUI.h>

@interface DetailViewController : UIViewController<DataFetchingHandler, MFMailComposeViewControllerDelegate>

@property (nonatomic, retain) IBOutlet UINavigationBar *navigationBar;
@property (nonatomic, retain) IBOutlet UILabel *priceLabel;
@property (nonatomic, retain) IBOutlet UILabel *cityLabel;
@property (nonatomic, retain) IBOutlet UILabel *addresLabel;
@property (nonatomic, retain) IBOutlet UILabel *moreInfoLabel;
@property (nonatomic, retain) IBOutlet UILabel *notifyLabel;
@property (nonatomic, retain) IBOutlet UIButton *notifyButton;
@property (nonatomic, retain) IBOutlet UILabel *equipmentLabel;
@property (nonatomic, retain) IBOutlet UILabel *equipmentTitleLabel;
@property (nonatomic, retain) IBOutlet UILabel *descriptionLabel;
@property (nonatomic, retain) IBOutlet UILabel *descriptionTitleLabel;
@property (nonatomic, retain) IBOutlet UIImageView *flatImage;
@property (nonatomic, retain) IBOutlet UIScrollView *scrollView;
@property (nonatomic) NSInteger idFlat;
@property (nonatomic, retain) Flat *flat;

- (IBAction)routePressed:(id)sender;
- (IBAction)notifyMePressed:(id)sender;
- (IBAction)sendMailPressed:(id)sender;

@end
